<?php

/**
 * Implements hook_form_FORM_ID_alter().
 *
 * @param $form
 *	 The form.
 * @param $form_state
 *	 The form state.
 */
function balo360com_form_system_theme_settings_alter(&$form, &$form_state) {
  $form['mtt_settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('Balo360Com Theme Settings'),
    '#collapsible' => false,
    '#collapsed' => false,
  );
  $form['mtt_settings']['hide_frontpage_main_content'] = array(
    '#type' => 'checkbox',
    '#title' => t('Hide Main Content Block in Home Page'),
    '#default_value' => theme_get_setting('hide_frontpage_main_content', 'balo360com'),
  );
  $form['mtt_settings']['breadcrumb'] = array(
    '#type' => 'fieldset',
    '#title' => t('Breadcrumb'),
    '#collapsible' => true,
    '#collapsed' => false,
  );
  $form['mtt_settings']['breadcrumb']['breadcrumb_display'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show breadcrumb'),
    '#description' => t('Use the checkbox to enable or disable breadcrumb.'),
    '#default_value' => theme_get_setting('breadcrumb_display', 'balo360com'),
  );
  $form['mtt_settings']['breadcrumb']['breadcrumb_separator'] = array(
    '#type' => 'textfield',
    '#title' => t('Breadcrumb separator'),
    '#default_value' => theme_get_setting('breadcrumb_separator', 'balo360com'),
    '#size' => 5,
    '#maxlength' => 10,
  );
  $form['mtt_settings']['breadcrumb']['breadcrumb_home'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show home page link in breadcrumb'),
    '#description' => t('Use the checkbox to enable or disable the home page link in breadcrumb.'),
    '#default_value' => theme_get_setting('breadcrumb_home'),
    );
  $form['mtt_settings']['support'] = array(
    '#type' => 'fieldset',
    '#title' => t('Accessibility and support settings'),
    '#collapsible' => true,
    '#collapsed' => false,
    );
  $form['mtt_settings']['support']['responsive'] = array(
    '#type' => 'fieldset',
    '#title' => t('Responsive'),
    '#collapsible' => true,
    '#collapsed' => false,
    );
  $form['mtt_settings']['tabs']['support']['responsive']['responsive_menu'] = array(
    '#type' => 'fieldset',
    '#title' => t('Responsive menu'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );

  $form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_state'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable responsive menu'),
    '#description'   => t('Use the checkbox to enable the plugin which transforms the Main menu of your site to a dropdown select list when your browser is at mobile widths.'),
    '#default_value' => theme_get_setting('responsive_menu_state', 'balo360com'),
  );

  $form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_switchwidth'] = array(
    '#type' => 'textfield',
    '#title' => t('Switch width (px)'),
    '#description'   => t('Set the width (in pixels) at which the Main menu of the site will change to a dropdown select list.'),
    '#default_value' => theme_get_setting('responsive_menu_switchwidth', 'balo360com'),
  );

  $form['mtt_settings']['tabs']['support']['responsive']['responsive_menu']['responsive_menu_topoptiontext'] = array(
    '#type' => 'textfield',
    '#title' => t('Top option text'),
    '#description'   => t('Set the very first option display text.'),
    '#default_value' => theme_get_setting('responsive_menu_topoptiontext', 'balo360com'),
  );
  $form['mtt_settings']['support']['responsive']['responsive_meta'] = array(
    '#type' => 'checkbox',
    '#title' => t('Add meta tags to support responsive design on mobile devices.'),
    '#default_value' => theme_get_setting('responsive_meta', 'balo360com'),
    );
  $form['mtt_settings']['support']['responsive']['responsive_respond'] = array(
    '#type' => 'checkbox',
    '#title' => t('Add Respond.js JavaScript to add basic CSS3 media query support to IE 6-8.'),
    '#default_value' => theme_get_setting('responsive_respond', 'balo360com'),
    '#description' => t('IE 6-8 require a JavaScript polyfill solution to add basic support of CSS3 media queries. Note that you should enable <strong>Aggregate and compress CSS files</strong> through <em>/admin/config/development/performance</em>.'),
    );
}
